﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Wuqi.Webdiyer;
namespace StoreWeb.system.role
{
    public partial class list : System.Web.UI.Page
    {
        Maticsoft.BLL.Role role = new Maticsoft.BLL.Role();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                int totalOrders = role.GetRecordCount("");
                AspNetPager1.RecordCount = totalOrders;
            }
        }
        void bindData()
        {
            Repeater1.DataSource = role.GetListByPage("", "", AspNetPager1.StartRecordIndex, AspNetPager1.EndRecordIndex);
            Repeater1.DataBind();
        }

        protected void AspNetPager1_PageChanged(object src, EventArgs e)
        {
            bindData();
        }
    }
}